<template>
	<view class="transferRecords u-skeleton">
		<u-navbar title="转赠记录" :background="{'backgroundColor':'#fff'}" :borderBottom="false" class="u-skeleton-rect"></u-navbar>
		
		<diy-scroll @scrolltolower='scrolltolower' @refresherrefresh='refresherrefresh' :is_display="list.length">
			<view class="item u-skeleton-rect" v-for="(v,n) in list" :key="n" >
				<view class="i-content">
					<image src="https://cdn.uviewui.com/uview/swiper/2.jpg" mode=""></image>
					<view class="i-right">
						<view class="name">潮卡</view>
						<view class="num">
							<text class="num-text">使用70.00个勋章</text>
							<text class="num-time">2023-12-23 20:15:44</text>
						</view>
					</view>
				</view>
			</view>
		</diy-scroll>
		
		<u-skeleton :loading="loding" :animation="true" bgColor="#FFF"></u-skeleton>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				// 首次进入加载
				loding: true,
				list:[],
			}
		},
		onShow() {
			setTimeout(() => {
				this.loding = false;
			}, 1000)
		},
		methods: {
			//列表刷新事件
			refresherrefresh() {
				console.log("列表刷新")
			},
			// 触底事件
			scrolltolower() {
				console.log("列表触底")
			},
		
		}
	}
</script>

<style lang="scss" scoped>
	.item{
		background: #FFFFFF;
		border-radius: 23rpx;
		margin: 30rpx 30rpx 20rpx;
		padding: 34rpx;
		box-sizing: border-box;
		.i-content{
			display: flex;
			image{
				width: 180rpx;
				height: 180rpx;
				border-radius:10rpx;
			}
			.i-right{
				margin-left: 30rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				.name{
					font-size: 30rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #000000;
				}
				.num{
					display: flex;
					flex-direction: column;
					.num-text{
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #666666;
					}
					.num-time{
						margin-top: 10rpx;
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #666666;
					}
				}
			}
		}
		
	}
</style>